













<?php
/**
 内容规则：

 1.PHP页面内容只能包含一个根元素（允许任意标签元素，推荐"div"元素）
 2.根元素类定义包含：class="module dshop-um-dz module-thirdparty"（class属性可以添加您需要的类选择器定义）
 3.元素class属性值禁止以"sys-", "pbsm-", "ae-", "j-", "psm-"字符开头,除[ae-module, module]以外
 4.禁止使用<style>标签（元素）
 5.禁止使用<script>标签（元素）
 6.禁止使用<link>标签（元素）
 7.禁止使用标签（元素）的id属性
 8.允许使用元素内联style属性
 */
?>
<?
	$zdy = $_MODULE['zdy'];

	if($zdy){
		echo $zdy;
		return;
	}

	$nr = $_MODULE['nr'];
	$nr = explode("@_@", $nr );

	$hdheight = $_MODULE['ht']?"height:".$_MODULE['ht']."px;":"height:110px;";

	//页头
	$ytback = $_MODULE['ytback'];

	if(strpos( $ytback,"http")!== false){
		$ytback ="background-image:url('".$_MODULE['ytback']."');";
	}else{
		$ytback = $_MODULE['ytback']?"background:".$_MODULE['ytback'].";":"";
	}

	//导航
	$dhback = $_MODULE['dhback'];

	if(strpos($dhback,"http" )!== false){
		$dhback ="background:url('".$_MODULE['dhback']."');";
	}else{
		$dhback = $_MODULE['dhback']?"background:".$_MODULE['dhback'].";":"";
	}
	//店招形式
	$dztype =  $_MODULE['dztype'];

	//图片模式
	$logosdis = "";

	$logosstyle = "";

	if($dztype=="texttype"){
		$logosdis = "display:none;";
	}

	$logosstyle .= $logosdis;

	$dzimg =  $_MODULE['dzimg'];

	$dzimg=$dzimg?"background:url('".$dzimg."');":"";

	$logosstyle .= $dzimg;


	//文字模式
	
	//主标题
	$main_titlestyle = "";

	$main_titledis = "";

	if($dztype=="imgtype"){
		$main_titledis = "display:none;";
	}

	$main_titlestyle .= $main_titledis;

	$zbtlefttop = $_MODULE['zbtlefttop'];

	if($zbtlefttop){
		$arr = explode("|", $zbtlefttop);

		$lefttop = "left:".$arr[0]."px;top:".$arr[1]."px;";
	}else{
		$lefttop = "";
	}

	$main_titlestyle .= $lefttop;

	$zbtfont = $_MODULE['zbtfont'];

	$zbtfont = $zbtfont?"font-family:".$zbtfont.";":"";

	$main_titlestyle .=$zbtfont;

	$zbtcolor = $_MODULE['zbtcolor'];

	$zbtcolor = $zbtcolor?"color:".$zbtcolor.";":"";

	$main_titlestyle .=$zbtcolor;


	$zbtsize = $_MODULE['zbtsize'];

	$zbtsize = $zbtsize?"font-size:".$zbtsize.";":"";

	$main_titlestyle .=$zbtsize;

	
	//副标题
	$sub_titlestyle = "";

	$sub_titledis = "";

	if($dztype=="imgtype"){
		$sub_titledis = "display:none;";
	}

	$sub_titlestyle .= $sub_titledis;

	$fbtlefttop = $_MODULE['fbtlefttop'];

	if($fbtlefttop){
		$arr = explode("|", $fbtlefttop);

		$lefttop = "left:".$arr[0]."px;top:".$arr[1]."px;";
	}else{
		$lefttop = "";
	}

	$sub_titlestyle .= $lefttop;

	$fbtfont = $_MODULE['fbtfont'];

	$fbtfont = $fbtfont?"font-family:".$fbtfont.";":"";

	$sub_titlestyle .=$fbtfont;

	$fbtcolor = $_MODULE['fbtcolor'];

	$fbtcolor = $fbtcolor?"color:".$fbtcolor.";":"";

	$sub_titlestyle .=$fbtcolor;


	$fbtsize = $_MODULE['fbtsize'];

	$fbtsize = $fbtsize?"font-size:".$fbtsize.";":"";

	$sub_titlestyle .=$fbtsize;
	$dzurl = $_MODULE['dzurl'];
		$dzurl =$dzurl;
	
	

?>

<div class=" module dshop-um-dz module-thirdparty">

<div class="  dshop-um-header " style="<? echo $hdheight; ?>">  

	<div class="bgheader" style="height:200px;bottom:0px;background-repeat:repeat-x;background-position:center bottom;<? echo $ytback; ?>">
	</div>

	<div class="bgnav" style="background-repeat:no-repeat;background-position:center center;<? echo $dhback; ?>">
	</div>

	<div class="logos" style="<? echo $logosstyle; ?>"></div>

	<a href="<? echo $dzurl; ?>"><div class="bgtitle"></div></a>



	<div class="main_title" style="<? echo $main_titlestyle; ?>">
	<span style=""> <? echo $_MODULE['dzzbt']; ?></span>
	</div>

	<div class="sub_title"  style="<? echo $sub_titlestyle; ?>"><span>
	  <? echo $_MODULE['dzfbt']; ?></span>
	</div>

	 <? 

		//公告
		$ggstyle = "";

		$ggdis = "";

		if(!in_array('gg',$nr)){
			$ggdis = "display:none;";
		}

		$ggstyle .= $ggdis;

		
		

		$ggwz = $_MODULE['ggwz'];

		if($ggwz){
			$arr = explode("|", $ggwz);

			$ggwz = "left:".$arr[0]."px;top:".$arr[1]."px;";
		}else{
			$ggwz = "";
		}

		$ggstyle .= $ggwz;



		$ggimg = $_MODULE['ggimg'];
		$ggimg =$ggimg?"background:url('".$_MODULE['ggimg']."');":$ggimg;

		$ggcc = $_MODULE['ggcc'];

		if($ggcc){
			$arr = explode("|", $ggcc);

			$ggcc = "width:".$arr[0]."px;height:".$arr[1]."px;";
		}else{
			$ggcc = "";
		}

		$ggimg .= $ggcc;

		$ggcolor = $_MODULE['ggcolor'];
		if($ggcolor){
			$ggcolor = $ggcolor?"color:".$ggcolor.";":"";

			
		}
		


		
	 ?>
	<div class="notice" style="<? echo $ggstyle ;?>"> 
		<span class="noticeimg" style="<? echo $ggimg; ?>"></span>
		<span class="noticecontent"  style="<? echo $ggcolor; ?>"><? echo $_MODULE['ggcont']; ?></span>
	</div>
	<?
		//搜索框
		$shstyle = "";
		
		$shdis = "";
		if(!in_array('sh',$nr)){
			$shdis = "display:none;";
		}

		$shstyle .= $shdis;

		$shlefttop = $_MODULE['shlefttop'];

		if($shlefttop){
			$arr = explode("|", $shlefttop);

			$lefttop = "left:".$arr[0]."px;top:".$arr[1]."px;";
		}else{
			$lefttop = "";
		}

		$shstyle .= $lefttop;

		

		$shcolor = $_MODULE['shcolor'];

		$shcolor = $shcolor?"color:".$shcolor.";":"";

		$shstyle .=$shcolor;

$shbgcolor = $_MODULE['shbgcolor'];

		$shbgcolor = $shbgcolor?"background-color:".$shbgcolor.";":"";

		$shbgstyle .=$shbgcolor;
		$id=$_shop->shopNumber;
	
	?>


	<div class="search" style="<? echo $shstyle; ?>">
		<div class="simg"></div>
		<form name="search" class="src" action="/store/<? echo $id; ?>/search?" method="get" target="_blank">
		<input type="text" name="SearchText" class="inputbox inp" value="<? echo $_MODULE['shword']; ?>" style="<? echo $shcolor; echo $shbgcolor?>" >
		<input type="hidden" name="minPrice" value="">
		<input type="hidden" name="maxPrice" value="">
		<input type="hidden" name="filterAllSearch" value="false">
		<input type="hidden" name="freeShipCountry" value="">
		<input type="submit" name="" value="" class="button">

		<div style="clear:both;display:block;overflow:hidden;visibility:hidden;width:0;height:0;"></div>
		</form>
	</div>


	<?
		

		$id=$_shop->shopNumber;

		$lanwz = $_MODULE['lanwz'];


		//语言
		$yystyle = "";

		$yydis = "";
	
		if(!in_array('yy',$nr)){
			$yydis = "display:none;";
		}

		$yystyle .= $yydis;

		
		

		$yywz = $_MODULE['lanwz'];

		if($yywz){
			$arr = explode("|", $yywz);

			$yywz = "left:".$arr[0]."px;top:".$arr[1]."px;";
		}else{
			$yywz = "";
		}

		$yystyle .= $yywz;

		
	?>



	

	<div class="lauguage lauguage2" style="<? echo $yystyle; ?>">
		<span class="list list2">
			<ul>


			<?


				$lan = $_MODULE['lan'];
				$lan = explode("@_@",$lan);

				$id=$_shop->shopNumber;

				foreach ($lan as  $v) {
					if(strstr($v, '|')){
					$yu=explode('|',$v);
					}else{
					$yu=explode('|',$v);	
					}
							
					if($yu[1]=="pt"){
						echo'<a class="imgwrap pt" target="_blank" title="Brasil" href="http://pt.aliexpress.com/store/'.$id.'"> </a>';
						break;
					}else{
					if($yu[0]!=null){	
					echo'<a class="imgwrap '.$yu[0].'"  title="'.$yu[0].'" href="http://'.$yu[0].'.aliexpress.com/store/'.$id.'" ></a>';
						}
					}	
				}
				
			?>
			
			</ul>
		</span>
	</div>


	


	<? 

		//二维码
		$ewstyle = "";

		$ewdis = "";

		if(!in_array('ew',$nr)){
			$ewdis = "display:none;";
		}

		$ewstyle .= $ewdis;

		$ewcc = $_MODULE['ewcc'];

		if($ewcc){
			$arr = explode("|", $ewcc);

			$ewcc = "width:".$arr[0]."px;height:".$arr[1]."px;";
		}else{
			$ewcc = "";
		}

		$ewstyle .= $ewcc;

		

		$ewwz = $_MODULE['ewwz'];

		if($ewwz){
			$arr = explode("|", $ewwz);

			$ewwz = "left:".$arr[0]."px;top:".$arr[1]."px;";
		}else{
			$ewwz = "";
		}

		$ewstyle .= $ewwz;



		$ewimg = $_MODULE['ewimg'];
		$ewimg =$ewimg?"background:url('".$_MODULE['ewimg']."');":$ewimg;

		$ewstyle .= $ewimg;

	?>

	<a href="http://www.aliexpress.com/store/<? echo $id; ?>" target="_blank" style="<? echo $ewstyle; ?>" class="barcode">
        
        
           </a>



	
           <? 

		//购物车
		$gwstyle = "";

		$gwdis = "";

		if(!in_array('gw',$nr)){
			$gwdis = "display:none;";
		}

		$gwstyle .= $gwdis;

		$gwcc = $_MODULE['gwcc'];

		if($gwcc){
			$arr = explode("|", $gwcc);

			$gwcc = "width:".$arr[0]."px;height:".$arr[1]."px;";
		}else{
			$gwcc = "";
		}

		$gwstyle .= $gwcc;

		

		$gwwz = $_MODULE['gwwz'];

		if($gwwz){
			$arr = explode("|", $gwwz);

			$gwwz = "left:".$arr[0]."px;top:".$arr[1]."px;";
		}else{
			$gwwz = "";
		}

		$gwstyle .= $gwwz;



		$gwimg = $_MODULE['gwimg'];
		$gwimg =$gwimg?"background:url('".$_MODULE['gwimg']."');":$gwimg;

		$gwstyle .= $gwimg;

	?>

           <a href="http://shoppingcart.aliexpress.com/shopcart/shopcartDetail.htm" title="Cart" target="_blank" style="<? echo $gwstyle; ?>" class="cart"></a>


                <? 

		//收藏
		$scstyle = "";

		$scdis = "";

		if(!in_array('sc',$nr)){
			$scdis = "display:none;";
		}

		$scstyle .= $scdis;

		$sccc = $_MODULE['sccc'];

		if($sccc){
			$arr = explode("|", $sccc);

			$sccc = "width:".$arr[0]."px;height:".$arr[1]."px;";
		}else{
			$sccc = "";
		}

		$scstyle .= $sccc;

		

		$scwz = $_MODULE['scwz'];

		if($scwz){
			$arr = explode("|", $scwz);

			$scwz = "left:".$arr[0]."px;top:".$arr[1]."px;";
		}else{
			$scwz = "";
		}

		$scstyle .= $scwz;



		$scimg = $_MODULE['scimg'];
		$scimg =$scimg?"background:url('".$_MODULE['scimg']."');":$scimg;

		$scstyle .= $scimg;

	?>


         <a data-action="addToStoreList"class=" trigger-add-wishlist" data-batman-id="j04ocg7y">  <div class="collBtn add-wishlist-btn trigger-add-wishlist" data-batman-id="ivxj6win" style="<? echo $scstyle; ?>"></div></a>


		<?php
		$sding=explode('|',$_MODULE[sding]);
		$dis=$_MODULE[s1dis];
		

		
			echo '<div class="J_TWidget m-sop m-sop-slide" data-widget-cid="widget-20" style="left:'.$sding[0].'px;top:'.$sding[1].'px;'.$dis.'">';
		?>
				<ol  class="slide-pics clearfix ">
				<?
				$ids=explode(',',$_MODULE[items]);
				if($ids!=null){
					$items=$itemManager->queryByIds($ids,'salesDesc');
				}else{
					$items=$itemManager->queryByUserId('salesDesc',20);
				}
				$num=0;
				for($i=0;$i<3;$i++){
					echo '<li class="itemline " >';
					for($a=0;$a<3;$a++){
						if($items[$num]!=null){
							$pic=$items[$num]->picUrl. '_80x80.jpg';
							$title=$items[$num]->title;
							$detailUrl=$items[$num]->detailUrl;
							echo '<div class="item '.$num.'">
								<div class="photo">
									<a style="height:76px;background:url('.$pic. ') no-repeat 50% 50%;"title="'.$title.'" target="_blank" href="'.$detailUrl.'" class="pic"></a>
								</div>
							</div>';
							$num++;
						}else{
							break;
						}
						
					}
					echo '</li>';
				}
		

				?>

				</ol>
				<a class="prev-btn"></a>
				<a class="next-btn"></a>
				<ul >
					<li class="ui-switchable-active">1</li>
					<li>2</li>
					</ul>
			</div>

	
	<?
		
		$shkeyword = $_MODULE['shkeyword'];
		$shkeyword = explode("|", $shkeyword);
		$shkeywordurl = $_MODULE['shkeywordurl'];
		$shkeywordurl = explode("|", $shkeywordurl);


		$shkeystyle = "";

		$shkeydis = "";
		if(!in_array('shkey',$nr)){
			$shkeydis = "display:none;";
		}

		$shkeystyle .= $shkeydis;

		$shkeylefttop = $_MODULE['shkeylefttop'];

		if($shkeylefttop){
			$arr = explode("|", $shkeylefttop);

			$lefttop = "left:".$arr[0]."px;top:".$arr[1]."px;";
		}else{
			$lefttop = "";
		}

		$shkeystyle .= $lefttop;

		

		$shkeycolor = $_MODULE['shkeycolor'];

		$shkeycolor = $shkeycolor?"color:".$shkeycolor.";":"";

		$shkeystyle .=$shkeycolor;




	?>
  

	


	<? 

		//自定义一
		$zdstyle = "";

		$zddis = "";

		if(!in_array('zd',$nr)){
			$zddis = "display:none;";
		}

		$zdstyle= $zddis;

		$zdcc = $_MODULE['zdcc'];

		if($zdcc){
			$arr = explode("|", $zdcc);

			$zdcc = "width:".$arr[0]."px;height:".$arr[1]."px;";
		}else{
			$zdcc = "";
		}

		$zdstyle .= $zdcc;

		

		$zdwz = $_MODULE['zdwz'];

		if($zdwz){
			$arr = explode("|", $zdwz);

			$zdwz = "left:".$arr[0]."px;top:".$arr[1]."px;";
		}else{
			$zdwz = "";
		}

		$zdstyle .= $zdwz;



		$zdimg = $_MODULE['zdimg'];
		$zdimg =$zdimg?"background:url('".$_MODULE['zdimg']."');":$zdimg;

		$zdstyle .= $zdimg;
		
		$zdsrc = $_MODULE['zdsrc'];
		$zdsrc =$zdsrc;



	?>
    <a href="<? echo $zdsrc; ?>" target="_blank" style="<? echo $zdstyle; ?>" class="bar"></a>
    
    
    <? 

		//自定义二
		$zdtstyle = "";

		$zdtdis = "";

		if(!in_array('zdt',$nr)){
			$zdtdis = "display:none;";
		}

		$zdtstyle= $zdtdis;

		$zdtcc = $_MODULE['zdtcc'];

		if($zdtcc){
			$arr = explode("|", $zdtcc);

			$zdtcc = "width:".$arr[0]."px;height:".$arr[1]."px;";
		}else{
			$zdtcc = "";
		}

		$zdtstyle .= $zdtcc;

		

		$zdtwz = $_MODULE['zdtwz'];

		if($zdtwz){
			$arr = explode("|", $zdtwz);

			$zdtwz = "left:".$arr[0]."px;top:".$arr[1]."px;";
		}else{
			$zdtwz = "";
		}

		$zdtstyle .= $zdtwz;



		$zdtimg = $_MODULE['zdtimg'];
		$zdtimg =$zdtimg?"background:url('".$_MODULE['zdtimg']."');":$zdtimg;

		$zdtstyle .= $zdtimg;
		
		$zdtsrc = $_MODULE['zdtsrc'];
		$zdtsrc =$zdtsrc;



	?>
    <a href="<? echo $zdtsrc; ?>" target="_blank" style="<? echo $zdtstyle; ?>" class="bart"></a>
	<? 

		//自定义三
		$zdystyle = "";

		$zdydis = "";

		if(!in_array('zdy',$nr)){
			$zdydis = "display:none;";
		}

		$zdystyle= $zdydis;

		$zdycc = $_MODULE['zdycc'];

		if($zdycc){
			$arr = explode("|", $zdycc);

			$zdycc = "width:".$arr[0]."px;height:".$arr[1]."px;";
		}else{
			$zdycc = "";
		}

		$zdystyle .= $zdycc;

		

		$zdywz = $_MODULE['zdywz'];

		if($zdywz){
			$arr = explode("|", $zdywz);

			$zdywz = "left:".$arr[0]."px;top:".$arr[1]."px;";
		}else{
			$zdywz = "";
		}

		$zdystyle .= $zdywz;



		$zdyimg = $_MODULE['zdyimg'];
		$zdyimg =$zdyimg?"background:url('".$_MODULE['zdyimg']."');":$zdyimg;

		$zdystyle .= $zdyimg;
		
		$zdysrc = $_MODULE['zdysrc'];
		$zdysrc =$zdysrc;



	?>
    <a href="<? echo $zdysrc; ?>" target="_blank" style="<? echo $zdystyle; ?>" class="bary"></a>
	
	<div class="hot" style="<? echo $shkeystyle;?>">
		<?
			foreach ($shkeyword as $k => $v) {
				echo 	'<a href="'.$shkeywordurl[$k].'" target="_blank" style="border-right-width:1px;">
						<span style="'.$shkeycolor.'">'. $v.'</span>
					</a>';
			}
		?>
		
		
	</div>  

</div>
	
</div>
